package br.com.exatta.dados;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

@Entity
public class Pesquisador extends EntidadeImpl{


	private static final long serialVersionUID = -3888034706358938152L;

	private Integer codigo;

	private String nome;

	public Pesquisador() {
	}

	@Basic
	public Integer getCodigo() {
		return codigo;
	}

	@Override
	@Id
	@SequenceGenerator(name = "SEQ_PESQUISADOR", sequenceName = "SEQ_PESQUISADOR", allocationSize = 1)
	@GeneratedValue(generator = "SEQ_PESQUISADOR", strategy = GenerationType.SEQUENCE)
	public Long getId() {
		return id;
	}

	@Basic
	public String getNome() {
		return nome;
	}

	public void setCodigo(Integer codigo) {
		this.codigo = codigo;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}
}
